<!DOCTYPE html>
{% load staticfiles %}
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>首成商城</title>
  <style>
    body,html{
      padding: 0;
      margin: 0;

    }
    .head {
      height: 110px;
      width: 100%;
      border-bottom: 3px solid red;
    }
    .container {
      width: 1200px;
      margin: 0 auto;
    }
    li {
      list-style: none
    }
    .nav{
      display: block;
      clear: both;
      overflow: hidden;
      width: 100%;
    }
    .nav .nav_list{
      width: 100%;
      background: orangered;
      float: left;
    }
    .nav .nav_list .nav_ul{
      padding: 0;
      margin: 0;
      overflow: hidden;
      clear: both;
    }
    .nav .nav_list .nav_ul li{
      float: left;
      font-size: 28px;
      color:#fff;
      width: 170px;
      height: 50px;
      line-height: 50px;
      border-right: 1px solid #fff;
      text-align: center;
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
      cursor: pointer;
    }
    .nav .nav_list .nav_ul li:last-child{
      border-right: none;
    }

    a{
      color:#fff;
      text-decoration: none;
    }

    .main{
      width: 100%;
      margin-top: 150px;
    }
    .main .main_ul{
      padding: 0;
      margin: 0;
      display: flex;
      flex-wrap: wrap;
      justify-content:center;
      align-items:center;
    }
    .main .main_ul .item{
      width: 750px;
      margin-right: 30px;
      margin-bottom: 30px;
      border: 1px solid orangered;
      display: flex;
    }
    .main .main_ul .item .item_img{
      width: 200px;
      height: 400px;
      flex-grow:1;
    }
    .main .main_ul .item .item_img img{
      width: 100%;
      height: 100%;
    }
    .main .main_ul .item .item_dtl{
      width: 350px;
      flex-grow:0;
      display: flex;
      flex-direction:column;
      justify-content:space-around;
      align-items:center;
    }
    .main .main_ul .item .item_dtl .item_price{
      font-size: 28px;
      color:red;
    }
    .main .main_ul .item .item_dtl button{
      width: 200px;
      height: 35px;
    }
  </style>
</head>
<body>
<header class="head">
  <div class="container">
    <div class="logo">
      <img src="{% static 'img/logo.png' %}" alt="">
    </div>
  </div>
</header>
<nav class="nav">
  <div class="nav_list">
    <div class="container">
      <ul class="nav_ul">
        <li><a href="#">所有宝贝</a></li>
        <li><a href="sz_item.html">神舟专区</a></li>
{#        <li><a href="hs_item.html">华硕专区</a></li>#}
      </ul>
    </div>
  </div>
</nav>
<div class="main">
  <div class="container">
    <div class="main_ul">

      <div class="item" >
        <div class="item_img">
          <img src="/upload/{{ detail.image }}" alt="">
        </div>
        <div class="item_dtl">
          <div class="item_name">{{ detail.name }}</div>
          <div class="item_name">{{ detail.detail }}</div>
          <div class="item_price">￥ {{ detail.price }}</div>
          <div class="item_btn">
            <a href="{% url 'web_urls' 'buy' %}"><button>立即购买</button></a>
          </div>
        </div>
      </div>

    </div>
  </div>
</div>
</body>
</html>
